/**
 * 	write on 2005-10-26 12:35:01.
 */
package org.nanhill.xmlro.gsp.packet;

/**
 * @author alin
 * 
 */
public class SetServicePacket<E> extends AbstractPacket<E> {
	private String serviceName;

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	private String version;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.protocol.gsp.type.packet.GspPacket#getBeginTag()
	 */
	public void appendBeginTag(StringBuilder builder) {
		builder.append("<Set svc=\"");
		builder.append(this.serviceName);
		builder.append("\" ver=\"");
		builder.append(this.version);
		builder.append("\" id=\"");
		builder.append(id);
		builder.append("\">");
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.protocol.gsp.type.packet.GspPacket#getEndTag()
	 */
	public void appendEndTag(StringBuilder builder) {
		builder.append("</Set>");
	}

}
